package br.ufpe.cin.camid.remote.main;

import java.util.List;

import com.beust.jcommander.Parameter;

public class CommandLineConfig 
{
	@Parameter
	private List<String> parameters;
	
	@Parameter( names = { "-p", "--port" }, description = "Camid server instance port number" )
	private Integer serverPort = 15000;
	
	@Parameter( names = { "-np", "--nameserver-port"}, description = "Camid's name server instance port number" )
	private Integer nameServerPort = 15000;
	
	@Parameter( names = { "-nh", "--nameserver-host" }, description = "Camid's name server instance host name" )
	private String nameServerHost;
	
	@Parameter( names = { "-n", "--node" }, description = "Describes if camid will run as a node" )
	private boolean node = false;
	
	@Parameter( names = { "-cm", "--cluster-manager"}, description = "Describes if camid will run as a cluster manager" )
	private boolean clusterManager = false;
	
	
	public List<String> getParameters() {
		return parameters;
	}

	public void setParameters(List<String> parameters) {
		this.parameters = parameters;
	}

	public Integer getServerPort() {
		return serverPort;
	}

	public void setServerPort(Integer serverPort) {
		this.serverPort = serverPort;
	}

	public Integer getNameServerPort() {
		return nameServerPort;
	}

	public void setNameServerPort(Integer nameServerPort) {
		this.nameServerPort = nameServerPort;
	}

	public String getNameServerHost() {
		return nameServerHost;
	}

	public void setNameServerHost(String nameServerHost) {
		this.nameServerHost = nameServerHost;
	}

	public boolean isNode() {
		return node;
	}

	public void setNode(boolean node) {
		this.node = node;
	}

	public boolean isClusterManager() {
		return clusterManager;
	}

	public void setClusterManager(boolean clusterManager) {
		this.clusterManager = clusterManager;
	}
	
}
